using System.Web.UI.WebControls;

namespace CKS.EBE.WebControls
{
    public class ContentTypePanel : Panel
    {
        private string _contentTypes = "";

        public string ContentTypes
        {
            get { return _contentTypes; }
            set { _contentTypes = value; }
        }

        protected override void Render(System.Web.UI.HtmlTextWriter writer)
        {
            string[] arTypes = ContentTypes.Split(';');

            foreach (string s in arTypes)
            {
                if (BlogContext.IsRequestForContentType(s))
                {
                    base.RenderChildren(writer);
                    break;
                }
            }
        }
    }
}
